<?php

namespace App\Entity;

use Doctrine\ORM\Mapping as ORM;

/**
 * TkSms
 *
 * @ORM\Table(name="tk_sms", indexes={@ORM\Index(name="vcc_index", columns={"vcc_id"}), @ORM\Index(name="sms_result", columns={"sms_result"}), @ORM\Index(name="vendor_sms_id", columns={"vendor_sms_id"})})
 * @ORM\Entity
 */
class TkSms
{
    /**
     * @var int
     *
     * @ORM\Column(name="id", type="integer", nullable=false)
     * @ORM\Id
     * @ORM\GeneratedValue(strategy="IDENTITY")
     */
    private $id;

    /**
     * @var int
     *
     * @ORM\Column(name="vcc_id", type="integer", nullable=false, options={"comment"="企业ID"})
     */
    private $vccId = '0';

    /**
     * @var int
     *
     * @ORM\Column(name="user_id", type="integer", nullable=false, options={"comment"="坐席ID"})
     */
    private $userId = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="user_name", type="string", length=150, nullable=false, options={"comment"="坐席姓名"})
     */
    private $userName = '';

    /**
     * @var string
     *
     * @ORM\Column(name="receive_phone", type="string", length=100, nullable=false)
     */
    private $receivePhone;

    /**
     * @var int
     *
     * @ORM\Column(name="send_time", type="integer", nullable=false, options={"comment"="发送时间"})
     */
    private $sendTime = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="sms_contents", type="text", length=0, nullable=false, options={"comment"="短信内容"})
     */
    private $smsContents;

    /**
     * @var int
     *
     * @ORM\Column(name="sms_result", type="smallint", nullable=false, options={"comment"="发送结果（1已发送 2发送成功 3发送失败）"})
     */
    private $smsResult = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="fail_reason", type="string", length=255, nullable=false, options={"comment"="失败原因"})
     */
    private $failReason = '';

    /**
     * @var int
     *
     * @ORM\Column(name="numbers", type="integer", nullable=false, options={"comment"="平台计费条数"})
     */
    private $numbers = '0';

    /**
     * @var string
     *
     * @ORM\Column(name="vendor_sms_id", type="string", length=255, nullable=false, options={"comment"="第三方短信平台返回的唯一短信id"})
     */
    private $vendorSmsId = '';

    public function getId(): ?int
    {
        return $this->id;
    }

    public function getVccId(): ?int
    {
        return $this->vccId;
    }

    public function setVccId(int $vccId): self
    {
        $this->vccId = $vccId;

        return $this;
    }

    public function getUserId(): ?int
    {
        return $this->userId;
    }

    public function setUserId(int $userId): self
    {
        $this->userId = $userId;

        return $this;
    }

    public function getUserName(): ?string
    {
        return $this->userName;
    }

    public function setUserName(string $userName): self
    {
        $this->userName = $userName;

        return $this;
    }

    public function getReceivePhone(): ?string
    {
        return $this->receivePhone;
    }

    public function setReceivePhone(string $receivePhone): self
    {
        $this->receivePhone = $receivePhone;

        return $this;
    }

    public function getSendTime(): ?int
    {
        return $this->sendTime;
    }

    public function setSendTime(int $sendTime): self
    {
        $this->sendTime = $sendTime;

        return $this;
    }

    public function getSmsContents(): ?string
    {
        return $this->smsContents;
    }

    public function setSmsContents(string $smsContents): self
    {
        $this->smsContents = $smsContents;

        return $this;
    }

    public function getSmsResult(): ?int
    {
        return $this->smsResult;
    }

    public function setSmsResult(int $smsResult): self
    {
        $this->smsResult = $smsResult;

        return $this;
    }

    public function getFailReason(): ?string
    {
        return $this->failReason;
    }

    public function setFailReason(string $failReason): self
    {
        $this->failReason = $failReason;

        return $this;
    }

    public function getNumbers(): ?int
    {
        return $this->numbers;
    }

    public function setNumbers(int $numbers): self
    {
        $this->numbers = $numbers;

        return $this;
    }

    public function getVendorSmsId(): ?string
    {
        return $this->vendorSmsId;
    }

    public function setVendorSmsId(string $vendorSmsId): self
    {
        $this->vendorSmsId = $vendorSmsId;

        return $this;
    }


}
